Skip to content

Mint GitHub App token in versioning workflow#45

Merged
MaxGhenis merged 1 commit intomainfrom
migrate-to-app-token
Apr 18, 2026
Merged

Mint GitHub App token in versioning workflow#45
MaxGhenis merged 1 commit intomainfrom
migrate-to-app-token

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

Summary

The org PAT POLICYENGINE_GITHUB expired on 2026-01-12. Migrate the versioning workflow to mint a short-lived GitHub App token via actions/create-github-app-token@v1 using the org-installed App (APP_ID / APP_PRIVATE_KEY), matching the pattern applied across other PolicyEngine repos (microdf, policyengine-core, policyengine-us, etc.).

  • Replaces secrets.POLICYENGINE_GITHUB with an App-minted token for the actions/checkout@v4 step.
  • Wires the same App token into EndBug/add-and-commit@v9 (with fetch: false) so the automated "Update package version" commit is authored by the App and can push to main.

Test plan

  • YAML validates with python3 -c "import yaml; yaml.safe_load(open('.github/workflows/versioning.yaml'))"
  • CI passes on this PR
  • After merge, next changelog.d change triggers Versioning updates and successfully pushes the version bump commit

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

The org PAT POLICYENGINE_GITHUB expired on 2026-01-12. Switch the
versioning workflow to mint a short-lived GitHub App token via
actions/create-github-app-token@v1 using the org-installed App
(APP_ID / APP_PRIVATE_KEY), matching the pattern used across other
PolicyEngine repos. Also wires the token into EndBug/add-and-commit
so the automated "Update package version" commit is authored by the
App and can push to main.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@MaxGhenis MaxGhenis merged commit 490f00b into main Apr 18, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant